<extend name="Base/common"/>
<!--<script type="text/javascript" src="/SG_Shopwechat/Public/Home/js/iscroll.js"></script>-->
<block name="TITLE"><title>采购申请</title></block>
<block name="body" >
    <header data-am-widget="header" class="am-header am-header-default am-header-fixed">
        <div class="am-header-left am-header-nav">
            <a href="{:U('Purchase/index')}" class="">
                <i class="am-header-icon am-icon-home" style="font-size: 40px;"></i>
            </a>
        </div>
        <h1 class="am-header-title">
            <a href="#title-link" class="">
                &nbsp;{$title}
            </a>
        </h1>

    </header>
    <div class="  am-list-news-bd" style="font-size: 15px;">
        <empty name="_goods">
            暂时没有商品
            <else/>
            <table class="am-table am-table-striped"  style="width:100%;">
                <thead style="">
                <tr>
                    <th></th>
                    <th>商品</th>
                    <th>斤</th>
                    <th>头</th>
                    <th>数量</th>
                    <th>创建时间</th>
                </tr>
                </thead>
                <volist name="_goods" id="vo">
                    <tr>
                        <td>
                            <a href="{:U('deleteTodaypurchase')}&pid={$vo.pid}&proName={$vo.proName}" class="am-icon am-icon-trash am-text-danger am-text-lg confirm"></a>
                        </td>
                        <td>{$vo.proName}</td>
                        <td>{$vo.jin}</td>
                        <td>{$vo.head}</td>
                        <td>{$vo.num}</td>
                        <td>{$vo.createdAt|time_format="Y/m/d"}</td>
                        <td>
                            <a href="{:U('addtopurchaselist')}&id={$vo.id}" class="am-btn am-btn-warning am-radius am-btn-sm confirm ">加预购</a>
                        </td>
                    </tr>
                </volist>
            </table>
        </empty>
    </div>
</block>
<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
        $('.confirm').click(function(){
            if(confirm("请确认操作")){
            }else{
                return false;
            }
        })
    </script>
</block>
